package com.meituan.sdk.model.wmoperNg.food.toppingBatchInit;

import javax.validation.constraints.NotBlank;
import com.google.gson.annotations.SerializedName;

/**
* <p data-diff-id="ct-diff-id-da47888b-6b2e-40ee-a765-ec310b59b420">小料列表，一次最多100。存在即更新，不存在的话新建。</p><p data-diff-id="ct-diff-id-fafe2c32-51ca-4ce8-8e8a-328f0df0ada4"><span style="color: #f5222d">注意：可能会部分成功部分失败。</span></p>
* This file was automatically generated.
*/
public class Topping {
    /**
    * <p data-diff-id="ct-diff-id-a80cf534-e5aa-41c9-92ce-67ac14a52802">小料编码</p>
    */
    @NotBlank(message = "toppingCode不能为空")
    @SerializedName("toppingCode")
    private String toppingCode;
    /**
    * <p data-diff-id="ct-diff-id-c2b4e8eb-e5af-4a54-93b3-795bd06fd888">小料名称</p>
    */
    @NotBlank(message = "name不能为空")
    @SerializedName("name")
    private String name;
    /**
    * <p data-diff-id="ct-diff-id-e7796484-d7cb-497c-b88f-a57029ca7731">价格，小数点后最多两位</p>
    */
    @NotBlank(message = "price不能为空")
    @SerializedName("price")
    private String price;
    /**
    * <p data-diff-id="ct-diff-id-ac705cca-6cd0-4138-a59c-bd5f2b42a07e">最大库存</p>
    */
    @SerializedName("maxStock")
    private Integer maxStock;
    /**
    * <p data-diff-id="ct-diff-id-fb01b409-2cec-4b56-b490-39487349836b">当前库存，-1代表无限库存，该字段为-1时，maxStock，autoRefresh不再使用，且查询时maxStock会返回-1</p>
    */
    @SerializedName("stock")
    private Integer stock;
    /**
    * <p data-diff-id="ct-diff-id-935f440e-18c2-4eea-9437-3624780bfe80">是否自动补足，</p><p data-diff-id="ct-diff-id-cff514f1-97bb-41e6-b7b6-3342904d760f">该字段只能填写0， 1，默认为0 </p><p data-diff-id="ct-diff-id-4ca7f412-f8bd-4397-b8f3-847556a325e1">0，不开启，1，开启</p>
    */
    @SerializedName("autoRefresh")
    private Integer autoRefresh;

    public String getToppingCode() {
        return toppingCode;
    }
    public void setToppingCode(String toppingCode) {
        this.toppingCode = toppingCode;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getPrice() {
        return price;
    }
    public void setPrice(String price) {
        this.price = price;
    }
    public Integer getMaxStock() {
        return maxStock;
    }
    public void setMaxStock(Integer maxStock) {
        this.maxStock = maxStock;
    }
    public Integer getStock() {
        return stock;
    }
    public void setStock(Integer stock) {
        this.stock = stock;
    }
    public Integer getAutoRefresh() {
        return autoRefresh;
    }
    public void setAutoRefresh(Integer autoRefresh) {
        this.autoRefresh = autoRefresh;
    }




    @Override
    public String toString() {
        return "Topping{" + "toppingCode=" + toppingCode + "," + "name=" + name + "," + "price=" + price + "," + "maxStock=" + maxStock + "," + "stock=" + stock + "," + "autoRefresh=" + autoRefresh + "}";
    }
}
